From f1362b97cc44d88b23227de9fcf1350339c66c51 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 23 Aug 2005 17:06:30 +0000 Subject: [PATCH] Don't be hyper about requiring that lines in in CR/NL - the IGC spec apparently says the last line may not. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1366 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/igc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/igc.c b/gpsbabel/igc.c index 1874e4edb..95c7d41ac 100644 --- a/gpsbabel/igc.c +++ b/gpsbabel/igc.c @@ -101,7 +101,7 @@ static igc_rec_type_t get_record(char *rec) } } len = strlen(rec); - if (len < 3 || rec[len - 2] != '\r' || rec[len - 1] != '\n' || rec[0] < 'A' || rec[0] > 'Z') { + if (len < 3 || rec[0] < 'A' || rec[0] > 'Z') { warning(MYNAME " bad input record: '%s'\n", rec); return rec_bad; } -- 2.30.2